From fc7b56510d8ec58660fad389b4d5f674e9b4a18d Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 27 Feb 2020 15:45:05 +0100 Subject: [PATCH] libxl/PCI: pass correct "hotplug" argument to libxl__device_pci_setdefault() Uniformly passing "false" can't be right, but has been benign because of the function not using this parameter. Signed-off-by: Jan Beulich Acked-by: Wei Liu --- tools/libxl/libxl_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index 3cf346c23e..957ff5c8e9 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools/libxl/libxl_pci.c @@ -1567,7 +1567,7 @@ void libxl__device_pci_add(libxl__egc *egc, uint32_t domid, } } - rc = libxl__device_pci_setdefault(gc, domid, pcidev, false); + rc = libxl__device_pci_setdefault(gc, domid, pcidev, !starting); if (rc) goto out; if (pcidev->seize && !pciback_dev_is_assigned(gc, pcidev)) { -- 2.30.2